import request from '@/utils/request'

// 封装一个获取评论或者获取回复的接口
export const cmtListAPI = params => {
  return request({
    url: '/v1_0/comments',
    params
  })
}

// 文章评论的接口
export const addCmtListAPI = data => {
  return request({
    url: '/v1_0/comments',
    method: 'post',
    data
  })
}
